package com.yisu.expressway.manager.core.mapper;

import com.yisu.expressway.ewf.entity.SpecificationGoods;
import com.yisu.expressway.manager.domain.request.GoodsInfoRequest;
import com.yisu.expressway.manager.domain.request.GoodsSpecificationRequest;

import java.util.List;

public interface SpecificationGoodsMapper {
    int deleteByPrimaryKey(Long id);
    int resetInfo();
    int insert(SpecificationGoods record);

    SpecificationGoods selectByPrimaryKey(Long id);

    int updateByPrimaryKey(SpecificationGoods record);
    int updateByPrimaryKeySelective(SpecificationGoods record);

    SpecificationGoods selectBySpecificationGoodsInfo(SpecificationGoods specificationGoods);

    List<SpecificationGoods> getSpecificationGoodsListByGoodsNoAndCategoryCode(SpecificationGoods specificationGoods);

    boolean resetSpecificationGoods(GoodsSpecificationRequest goodsSpecificationRequest);

    /**
     * 添加库存量
     * @param goodsInfoRequest
     * @return
     */
    boolean addInventoryNum(GoodsInfoRequest goodsInfoRequest);
}